import sys
import os
import math
import random
import datetime
import time

"""
sys
"""
print(sys.version)
print(sys.platform)
# sys.exit() # 退出解释器（结束程序）

"""
os
"""
print(os.environ)
# print(os.system('ping www.baidu.com'))
print(os.path.exists('D:/java'))

"""
math
"""
print(math.pi)
print(math.ceil(3.2)) # 向上取整，返回大于等于该数字的最小整数
print(math.floor(3.2)) # 向下取整，返回小于等于该数字的最大整数

"""
random
"""
print(random.random())
print(random.randint(1,5))

"""
datetime
"""
print(datetime.datetime.now())
print(datetime.datetime(2008,12,15,11,30,20))

"""
time
"""
print(time.ctime())
# time.sleep(5) # 休眠5秒
print('hello world')

